package lzy.service.impl;
import lzy.entity.Logistics;
import lzy.mapper.LogisticsMapper;
import lzy.service.LogisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Date;
import java.util.List;

@Service
public class LogisticsServiceImpl implements LogisticsService {
    @Autowired
    private LogisticsMapper logisticsMapper;

    @Override
    public List<Logistics> findByFilter(String logisticsNo, String batchNo, String destination, String status, Date startTime, Date endTime) {
        return logisticsMapper.findByFilter(logisticsNo, batchNo, destination, status, startTime, endTime);
    }

    @Override
    public void addLogistics(lzy.entity.Logistics logistics) {
        logisticsMapper.addLogistics(logistics);
    }
} 